package com.zys.principles.demo1.emp2;

/**
 * 符合单一职责原则，但改动很大要将类分解还要改动客户端
 */
public class Client {
    public static void main(String[] args) {
        RoadVehicle roadVehicle = new RoadVehicle();
        roadVehicle.run("bike");
        AirVehicle airVehicle = new AirVehicle();
        airVehicle.run("plane");
        WaterVehicle waterVehicle = new WaterVehicle();
        waterVehicle.run("boat");
    }
}
